<?php
require_once("functions.php");
/*session_start();
$db_host = "fenrir";
$db_user = "colios";
$db_passwd = "WoWuScMuGH";
$db_baza_date = "colios";

$baza = mysql_connect($db_host, $db_user, $db_passwd) or die('Cannot connect to server Please retry later!');*/
mysql_select_db($db_baza_date, $baza) or die ('Cannot connect to server! Please retry later!');
set_time_limit (100);
mysql_set_charset('utf8', $baza); 
if($_POST['step'] == 1) {
    $msg = retrimiteParola($_POST['email']);
}
?>
<html>
    <head>
        <title>Parola uitata</title>
        <script type="text/javascript" src="functions.js"></script>
        <script type="text/javascript">
        </script>
    </head>
    <body>
        <form id="myForm" action="parola.php" method="POST">
            <input type="hidden" name="step" id="step" value="1">
            <p align=center><font size=8>Parola uitata</font></p>
            <br/><br/><br/><br/>
		<?php if($_POST['step'] == 1) {
                print '<p align="center">'.$msg.'</p>
	       <p align = "center">
       	<a href="index.php">Prima pagina/Logare</a></p> ';

            }
            else {?>

            <p align=center>
                <font size=4 color=blue>In cazul in care v-ati uitat parola,<BR /> introduceti e-mailul dumneavoastra:</font>
                <input name="email" id="email" type="text"  size="30" maxlength="50"></>
                <font size=4 color=blue> si va vom trimite prin e-mail o noua parola.</font>
            </p>
            <p>

            </p>
            <p align=center>
                <input type="submit" value="Recapatati-va parola">
            </p>
    <?php
}
?>


        </form>

    </body>
</html>

